package com.wfs.spring;

import com.wfs.spring.config.SpringConfig;
import com.wfs.spring.service.TestTwoService;
import com.wfs.spring.service.impl.TestTwoServiceImpl;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringMain {
    public static void main(String[] args) {
       /* ClassPathXmlApplicationContext xmlApplicationContext=new ClassPathXmlApplicationContext("springConfig.xml");
        String[] beanDefinitionNames = xmlApplicationContext.getBeanDefinitionNames();
        TestTwoService testService = xmlApplicationContext.getBean("testTwoService",TestTwoServiceImpl.class);
        testService.testTwo();*/
        /*AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        Person person = (Person) ctx.getBean("women");
        person.likePerson();
        Animal animal = (Animal)person;
        animal.eat();*/


    }
}
